Unveiling the Connection: How Economy, Infrastructure & Society Shape Healthcare Access
Healthcare access is influenced by a combination of economic growth, healthcare infrastructure, and social factors. While wealthier nations often have better healthcare coverage, inflation and economic instability can undermine progress. Strong infrastructure, including hospital availability and government policies, plays a crucial role in expanding essential health services. Social dynamics, such as birth rates, life expectancy, and population size, further shape healthcare accessibility. This analysis explores these interconnected factors through interactive visualizations, revealing trends, disparities, and the key drivers behind healthcare service coverage worldwide.
Code
import pandas as pdimport plotly.express as pxfrom IPython.display import HTMLimport plotly.io as piofrom plotnine import*indicator_df = ( pd.read_csv("data/unicef_indicator_2.csv") .rename(columns={"country_name": "country","obs_value": "coverage","time_period": "year" }))metadata_df = pd.read_csv("data/unicef_metadata.csv")iso_map = ( metadata_df[["country", "alpha_3_code"]] .drop_duplicates() .set_index("country")["alpha_3_code"] .to_dict())df = indicator_df[["country", "year", "coverage"]].copy()df["iso3"] = df["country"].map(iso_map)df = df.dropna(subset=["iso3"]) # drop any unmatched countriesdf["coverage"] = df["coverage"].round(2) # round for displayfig = px.choropleth( df, locations="iso3", color="coverage", hover_name="country", hover_data={"coverage": True,"iso3": False,"year": True }, animation_frame="year", color_continuous_scale="YlOrRd", projection="natural earth", width=600, height=350)fig.layout.updatemenus = []fig.layout.sliders[0].currentvalue.visible =Falsefig.update_layout( font_family="Arial", title_x=0.5, margin={"r":0,"t":0,"l":0,"b":0}, geo=dict(showframe=False, showcoastlines=False, bgcolor="rgba(0,0,0,0)"), paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", sliders=[dict( x=0.5, xanchor="center",len=0.6, y=0.02, yanchor="bottom", pad=dict(t=0, b=10) )])s = fig.layout.sliders[0]s.x =0.5# position at 50% of the widths.xanchor ="center"s.len=0.6# 60% of the full width (tweak as you like)fig.update_coloraxes( colorbar_thickness=10, # px thickness of the bar colorbar_len=0.6, # 60% of the plot height colorbar_x=0.98, # push it just outside the map colorbar_xanchor="center", colorbar_title_text="")fig.update_geos( fitbounds="locations", # zoom so all your data fills the viewport visible=False# hide the default coastlines/frame)fig.update_layout( margin=dict(l=0, r=2, t=0, b=0), autosize=True)HTML(pio.to_html(fig, full_html=True, config={'displayModeBar': False}, include_plotlyjs="cdn"))
Global Coverage of Essential Health Services
Healthcare access varies significantly worldwide, affecting millions. This map visualizes from the time period of 2000 to 2021. Coverage of Essential Health Services for each country over time, highlighting global disparities and trends.Darker shades indicate higher healthcare coverage, while lighter shades represent lower access to essential health service.
Wealth Drives Healthcare Access:
Countries with higher GDP per capita tend to have better essential health service (CEHS) coverage due to greater investments in healthcare infrastructure, medical staff, and public health programs.
Higher life expectancy is often observed in countries with strong healthcare systems, reinforcing the long-term benefits of economic development.
Code
from plotnine import*import pandas as pdindicator_df = pd.read_csv("data/unicef_indicator_2.csv")metadata_df = pd.read_csv("data/unicef_metadata.csv")healthcare_df = indicator_df[indicator_df["indicator"] =="Coverage of essential health services"]metadata_df = metadata_df.rename(columns={"year": "time_period"})merged_df = pd.merge( healthcare_df, metadata_df[["country", "time_period","GDP per capita (constant 2015 US$)","Life expectancy at birth, total (years)" ]], on=["country", "time_period"], how="inner")merged_df = merged_df.rename(columns={"obs_value": "Healthcare_Coverage","GDP per capita (constant 2015 US$)": "GDP_per_capita","Life expectancy at birth, total (years)": "Life_Expectancy"})plot_df = merged_df.dropna(subset=["Healthcare_Coverage", "GDP_per_capita", "Life_Expectancy"])fig = px.scatter( plot_df, x="GDP_per_capita", y="Healthcare_Coverage", color="Life_Expectancy", color_continuous_scale=["blue", "purple", "orange", "red"], trendline="ols", trendline_color_override="gray", labels={"GDP_per_capita": "GDP per capita (2015 US$)","Healthcare_Coverage": "Essential Healthcare Coverage (%)","Life_Expectancy": "" }, hover_data={"GDP_per_capita": ":.0f","Healthcare_Coverage": ":.1f","Life_Expectancy": ":.1f" }, template="plotly_white")fig.update_yaxes(range=[10, 100])fig.update_layout( title="Economic Factors & Healthcare Coverage", title_x=0.5, width=600, height=600, margin=dict(l=60, r=20, t=60, b=60), paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", coloraxis_colorbar=dict( thickness=10,len=0.5 ))HTML(fig.to_html(full_html=False, config={'displayModeBar': False}, include_plotlyjs="cdn"))
More Hospital Beds → Better CEHS Higher hospital bed availability aligns with stronger healthcare coverage.
Regional Disparities Exist Some regions have fewer hospital beds despite healthcare needs, exposing infrastructure gaps.
Low CEHS % → Strained Facilities Countries with low hospital capacity struggle to expand healthcare services.Strong healthcare infrastructure is essential for improving service coverage and accessibility.
Higher the Essential healthcare service(CEHS) % → Longer Life Expectancy Better healthcare leads to lower mortality rates and longer lifespans.Countries with rising CEHS % often see life expectancy improve over time.
Lower the Essential healthcare service CEHS % → Higher Birth Rates Limited healthcare access correlates with higher birth rates, due to lack of family planning and maternal care.Larger populations with low CEHS % put pressure on healthcare systems.
Balancing Population Growth & Healthcare Demand Investing in healthcare not only extends life expectancy but also helps stabilize birth rates.Sustainable healthcare access is key to breaking cycles of poor health and overburdened system
The interplay between healthcare coverage and life expectancy becomes vividly clear when tracking top-performing countries over time. As seen in Canada, Iceland, Singapore, and South Korea nations with consistently high Coverage of Essential Health Services (CEHS)life expectancy trends upward in near lockstep with improved healthcare access. This reinforces the dashboard’s earlier findings: economic stability (evident in these high-GDP nations) and robust infrastructure (like hospital beds, shown in prior charts) create a virtuous cycle. Strong healthcare systems reduce preventable mortality, extending lifespans while conversely, as noted in the birth rate analysis, limited coverage perpetuates demographic and health disparities. These top performers exemplify how sustained investment in healthcare yields compounding societal benefits, mirroring the global trends but with measurable outcomes.
Conclusion
Economic growth, healthcare infrastructure, and social factors are key drivers of healthcare coverage. Wealthier countries with higher GDP per capita generally have better healthcare access, but macroeconomic instability, like inflation, can reduce this. Strong healthcare infrastructure, such as more hospital beds, is essential for expanding service coverage. Additionally, better healthcare improves life expectancy and lowers birth rates, while countries with limited healthcare face challenges like higher birth rates and shorter life expectancy.Sustainable healthcare progress requires a balance of economic stability,robust infrastructure, and social policies to improve long-term healthcare access and outcomes.